/**
 * <copyright>
 * </copyright>
 *

 */
package br.pucrio.inf.tamdera.util;

import br.pucrio.inf.tamdera.*;

import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;

import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;

import org.eclipse.emf.ecore.EObject;

/**
 * <!-- begin-user-doc -->
 * The <b>Adapter Factory</b> for the model.
 * It provides an adapter <code>createXXX</code> method for each class of the model.
 * <!-- end-user-doc -->
 * @see br.pucrio.inf.tamdera.TamderaPackage
 * @generated
 */
public class TamderaAdapterFactory extends AdapterFactoryImpl
{
  /**
   * The cached model package.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  protected static TamderaPackage modelPackage;

  /**
   * Creates an instance of the adapter factory.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public TamderaAdapterFactory()
  {
    if (modelPackage == null)
    {
      modelPackage = TamderaPackage.eINSTANCE;
    }
  }

  /**
   * Returns whether this factory is applicable for the type of the object.
   * <!-- begin-user-doc -->
   * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
   * <!-- end-user-doc -->
   * @return whether this factory is applicable for the type of the object.
   * @generated
   */
  @Override
  public boolean isFactoryForType(Object object)
  {
    if (object == modelPackage)
    {
      return true;
    }
    if (object instanceof EObject)
    {
      return ((EObject)object).eClass().getEPackage() == modelPackage;
    }
    return false;
  }

  /**
   * The switch that delegates to the <code>createXXX</code> methods.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  protected TamderaSwitch<Adapter> modelSwitch =
    new TamderaSwitch<Adapter>()
    {
      @Override
      public Adapter caseRulesSpecification(RulesSpecification object)
      {
        return createRulesSpecificationAdapter();
      }
      @Override
      public Adapter caseParagraph(Paragraph object)
      {
        return createParagraphAdapter();
      }
      @Override
      public Adapter caseConstraintSetDeclaration(ConstraintSetDeclaration object)
      {
        return createConstraintSetDeclarationAdapter();
      }
      @Override
      public Adapter caseConceptDeclaration(ConceptDeclaration object)
      {
        return createConceptDeclarationAdapter();
      }
      @Override
      public Adapter caseDependencyRuleDeclaration(DependencyRuleDeclaration object)
      {
        return createDependencyRuleDeclarationAdapter();
      }
      @Override
      public Adapter casePackageMapping(PackageMapping object)
      {
        return createPackageMappingAdapter();
      }
      @Override
      public Adapter caseRegExpressionMapping(RegExpressionMapping object)
      {
        return createRegExpressionMappingAdapter();
      }
      @Override
      public Adapter caseParentMapping(ParentMapping object)
      {
        return createParentMappingAdapter();
      }
      @Override
      public Adapter casePrefixMapping(PrefixMapping object)
      {
        return createPrefixMappingAdapter();
      }
      @Override
      public Adapter caseSuffixMapping(SuffixMapping object)
      {
        return createSuffixMappingAdapter();
      }
      @Override
      public Adapter caseNameClassMapping(NameClassMapping object)
      {
        return createNameClassMappingAdapter();
      }
      @Override
      public Adapter caseConceptMap(ConceptMap object)
      {
        return createConceptMapAdapter();
      }
      @Override
      public Adapter caseConstraint(Constraint object)
      {
        return createConstraintAdapter();
      }
      @Override
      public Adapter caseMetricConstraint(MetricConstraint object)
      {
        return createMetricConstraintAdapter();
      }
      @Override
      public Adapter defaultCase(EObject object)
      {
        return createEObjectAdapter();
      }
    };

  /**
   * Creates an adapter for the <code>target</code>.
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @param target the object to adapt.
   * @return the adapter for the <code>target</code>.
   * @generated
   */
  @Override
  public Adapter createAdapter(Notifier target)
  {
    return modelSwitch.doSwitch((EObject)target);
  }


  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.RulesSpecification <em>Rules Specification</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.RulesSpecification
   * @generated
   */
  public Adapter createRulesSpecificationAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.Paragraph <em>Paragraph</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.Paragraph
   * @generated
   */
  public Adapter createParagraphAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.ConstraintSetDeclaration <em>Constraint Set Declaration</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.ConstraintSetDeclaration
   * @generated
   */
  public Adapter createConstraintSetDeclarationAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.ConceptDeclaration <em>Concept Declaration</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.ConceptDeclaration
   * @generated
   */
  public Adapter createConceptDeclarationAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.DependencyRuleDeclaration <em>Dependency Rule Declaration</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.DependencyRuleDeclaration
   * @generated
   */
  public Adapter createDependencyRuleDeclarationAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.PackageMapping <em>Package Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.PackageMapping
   * @generated
   */
  public Adapter createPackageMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.RegExpressionMapping <em>Reg Expression Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.RegExpressionMapping
   * @generated
   */
  public Adapter createRegExpressionMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.ParentMapping <em>Parent Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.ParentMapping
   * @generated
   */
  public Adapter createParentMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.PrefixMapping <em>Prefix Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.PrefixMapping
   * @generated
   */
  public Adapter createPrefixMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.SuffixMapping <em>Suffix Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.SuffixMapping
   * @generated
   */
  public Adapter createSuffixMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.NameClassMapping <em>Name Class Mapping</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.NameClassMapping
   * @generated
   */
  public Adapter createNameClassMappingAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.ConceptMap <em>Concept Map</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.ConceptMap
   * @generated
   */
  public Adapter createConceptMapAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.Constraint <em>Constraint</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.Constraint
   * @generated
   */
  public Adapter createConstraintAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for an object of class '{@link br.pucrio.inf.tamdera.MetricConstraint <em>Metric Constraint</em>}'.
   * <!-- begin-user-doc -->
   * This default implementation returns null so that we can easily ignore cases;
   * it's useful to ignore a case when inheritance will catch all the cases anyway.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @see br.pucrio.inf.tamdera.MetricConstraint
   * @generated
   */
  public Adapter createMetricConstraintAdapter()
  {
    return null;
  }

  /**
   * Creates a new adapter for the default case.
   * <!-- begin-user-doc -->
   * This default implementation returns null.
   * <!-- end-user-doc -->
   * @return the new adapter.
   * @generated
   */
  public Adapter createEObjectAdapter()
  {
    return null;
  }

} //TamderaAdapterFactory
